<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="include :: header"></head>
<body class="hold-transition skin-blue sidebar-mini">

<section class="content-header">
    <h1>派工领料计划查询</h1>
</section>
<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <form id="queryForm" onsubmit="return false;">
                        <div class="row">
                            <div class="form-inline">
                                <div class="form-group">
                                    <label for="query-prodNo">生产令号</label>
                                    <input id="query-prodNo" type="text" name="prodNo" class="form-control"
                                           placeholder="请输入生产令号">
                                </div>
                                <div class="form-group">
                                    <label for="query-proName">项目名称</label>
                                    <input id="query-proName" type="text" name="proName" class="form-control"
                                           placeholder="请输入项目名称">
                                </div>
                                <div class="form-group">
                                    <label for="query-part">部分</label>
                                    <input id="query-part" type="text" name="part" class="form-control"
                                           placeholder="请输入部分">
                                </div>
                                <div class="form-group">
                                    <label for="query-drawNoDis">装配图号</label>
                                    <input id="query-drawNoDis" type="text" name="drawNoDis" class="form-control"
                                           placeholder="请输入装配图号">
                                </div>
                                <div class="form-group">
                                    <label for="query-drawNameDis">装配图名</label>
                                    <input id="query-drawNameDis" type="text" name="drawNameDis" class="form-control"
                                           placeholder="请输入装配图名">
                                </div>
                                <div class="form-group">
                                    <label for="query-drawNo">零件图号</label>
                                    <input id="query-drawNo" type="text" name="drawNo" class="form-control"
                                           placeholder="请输入零件图号">
                                </div>
                                <div class="form-group">
                                    <label for="query-drawName">零件图名</label>
                                    <input id="query-drawName" type="text" name="drawName" class="form-control"
                                           placeholder="请输入零件图名">
                                </div>
                                <input type="hidden" value="2" name="status">
                                <button type="button" class="btn btn-success" id="btn-search"
                                        onclick="js.table.search(table)">
                                    <span class="Bold">搜索</span>
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="box-body">
                    <table id="bootstrap-table"></table>
                </div>
            </div>
        </div>
    </div>
</section>
<div th:include="include :: footer"></div>
<script th:inline="javascript">

    let table;

    $(function () {

        /** 加载列表 */
        table = js.table.init({
            url: ctx + "assemble/assMake/makeListAll",
            showColumns: true,
            showExport: true,
            columns: [
                {
                    title: '序号', field: 'id', width: '50',
                    formatter: function (value, row, index) {
                        return index + 1;
                    }
                },
                {title: "生产令号", field: 'prodNo'},
                {title: "项目名称", field: 'proName'},
                {title: "类型", field: 'special'},
                {title: "部分", field: 'part'},
                {title: "装配图号", field: 'drawNoDis'},
                {title: "装配图名", field: 'drawNameDis'},
                {title: "零件图号", field: 'drawNo'},
                {title: "零件图名", field: 'drawName'},
                {title: "使用数量", field: 'useNum'},
                {title: "保存时间", field: 'commitTime'}
            ]
        });

    });
</script>
</body>
</html>
